package it.softphone.cmc.server.rest;

import it.softphone.cmc.server.service.exception.CMCException;

import javax.ws.rs.core.Response.Status;

@SuppressWarnings("serial")
public class CMCRestException extends CMCException {

	final Status status;
	
	public CMCRestException() {
		status = Status.INTERNAL_SERVER_ERROR;
	}

	public CMCRestException( Status status, String msg) {
		super(msg);
		this.status = status;
	}

	public CMCRestException(Status status, Throwable t) {
		super(t);
		this.status = status;
	}

	public CMCRestException(Status status, String msg, Throwable t) {
		super(msg, t);
		this.status = status;
	}

	public final Status getStatus() {
		return status;
	}


}
